0e1f8cb03a1d82969c141c5c39448ebfa7b801ce,esigate-core/src/main/java/org/esigate/http/cookie/CookieUtil.java,CookieUtil,encodeCookie,#Cookie#,32
Before Change
buf.append("=");
buf.append(cookie.getValue());
if (cookie.getComment() != null) {
buf.append("; Comment=\"");
buf.append(cookie.getComment());
buf.append("\"");
}
if (cookie.getDomain() != null) {
buf.append("; Domain=\"");
buf.append(cookie.getDomain());
buf.append("\"");
}
if (maxAge >= 0) {
buf.append("; Max-Age=\"");
buf.append(maxAge);
buf.append("\"");
}
if (cookie.getPath() != null) {
buf.append("; Path=\"");
buf.append(cookie.getPath());
buf.append("\"");
}
if (cookie.isSecure()) {
After Change
cookie.getValue()), false);
appendAttribute(buf, "Comment", cookie.getComment());
appendAttribute(buf, "Domain", cookie.getDomain());
appendAttribute(buf, "Max-Age", maxAge);
appendAttribute(buf, "Path", cookie.getPath());
if (cookie.isSecure()) {